import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
// 公共路由
export const constantRoutes = [
    {
        path: '/',
        name: 'home',
        component: (resolve) => require(['@/views/home/index.vue'], resolve),
        hidden: true
    },
    {
        path: '/transport',
        name: 'transport',
        component: (resolve) => require(['@/views/transport/index.vue'], resolve),
        hidden: true
    },
    {
        path: '/map',
        name: 'map',
        component: (resolve) => require(['@/views/map/mapThreeProvinces.vue'], resolve),
        hidden: true
    },
    {
        path: '/FinancialService',
        name: 'FinancialService',
        component: (resolve) => require(['@/views/FinancialService/index.vue'], resolve),
        hidden: true
    }
    ];
export default new Router({
    mode: 'history', // 去掉url中的#
    scrollBehavior: () => ({ y: 0 }),
    routes: constantRoutes
})
